<?php

declare(strict_types=1);

namespace app\cart\controller;

use app\cart\model\GoodsShopcar;
use app\CheckTokenController;
use app\model\Goods;

class Del extends CheckTokenController
{
    public function index()
    {
        $params = $this->request->param();
        $DBGoodsShopcart = new GoodsShopcar();
        $info = $DBGoodsShopcart->where('goods_id', $params['goods_id'])->find()->delete();
        return result($info);
    }
}
